package com.xd.core.finance.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 充值记录表
 * </p>
 *
 * @author ZX
 * @since 2025-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="RechargeRecord对象", description="充值记录表")
public class RechargeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "订单交易号")
    private Integer tradeNo;

    @ApiModelProperty(value = "支付类型（1.线下打款）")
    private Integer payType;

    @ApiModelProperty(value = "支付类型（1.线下打款）")
    @TableField(exist = false)
    private String payTypeRemark;

    @ApiModelProperty(value = "交易类型（1.服务费充值,2.服务费退款）")
    private String type;

    @ApiModelProperty(value = "交易类型（1.服务费充值,2.服务费退款）")
    @TableField(exist = false)
    private String typeRemark;

    @ApiModelProperty(value = "充值编号")
    private String code;

    @ApiModelProperty(value = "充值金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "充值人id")
    private Integer userId;

    @ApiModelProperty(value = "充值公司id")
    private Integer companyId;

    @ApiModelProperty(value = "交易状态(1.未支付，2.已支付)")
    private String tradeStatus;

    @ApiModelProperty(value = "订单状态(1.未支付，2.已支付)")
    private String orderStatus;

    @ApiModelProperty(value = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "交易时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date tradeTime;

    @ApiModelProperty(value = "支付完成后跳转的地址")
    private String returnUrl;

    @TableField(exist = false)
    @ApiModelProperty(value = "债权方机构名称")
    private String companyName;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "账户名")
    private String accountName;

    @ApiModelProperty(value = "开户行")
    private String bank;

    @ApiModelProperty(value = "账号")
    private String account;

}
